import request from '@/utils/request'

// 根据身份证号加载患者
export function getPatientByCode(query) {
  return request({
    url:'/wp/patient/list2',
    method: 'post',
    data: query
  });
}


// 新增患者信息
export function addPatient(patient) {
  return request({
    url : '/wp/patient/add',
    method: 'post',
    data: patient
  });
}


// 新增挂号
export function addDoctorRegister(doctorRegister) {
  return request({
    url: '/wp/doctorRegister/add',
    method: 'post',
    data: doctorRegister
  });
}

// 查询所有挂号费用类型
export function getAllRegistraFee() {
  return request({
    url: '/wp/register/list11',
    method: 'post'
  });
}


// 查询药品详细
export function queryRegis(registraId) {
  return request({
    url: '/wp/register/' + registraId,
    method: 'get'
  })
}



// 条件分页查询患者
export function listDoctorPatient(params) {
  return request({
    url: '/visit/patient/list',
    method: 'get',
    params: params
  });
}
